﻿using System.Runtime.Serialization;

namespace ServiceInfrastructure.Models.Exceptions
{
    [DataContract]
    public class BusinessFaultDetails
    {
        public BusinessFaultDetails(string ruleId, string message, string tag)
        {
            Tag = tag;
            Message = message;
            RuleId = ruleId;
        }

        [DataMember(Order = 1, Name = "Key")]
        public string RuleId { get; private set; }

        [DataMember(Order = 2)]
        public string Message { get; private set; }

        [DataMember(Order = 3)]
        public string Tag { get; private set; }
    }
}
